package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/***
 ** Create by Wedream on 2021/8/3
 *  实体：互联网企业100强名单
 *  top100_internet_company(id,ranking,company,business,province)
 */
@TableName("top100_internet_company")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Top100InternetCompany implements Comparable<Top100InternetCompany>{
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer ranking;
    private String company;
    private String business;
    private String province;
    @Override
    public int compareTo(Top100InternetCompany o) {
        return this.getProvince().compareTo(o.getProvince());
    }
}
